package com.shoppingmalltest.shoppingmalltest.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shoppingmalltest.common.utils.PageUtils;
import com.shoppingmalltest.common.utils.Query;

import com.shoppingmalltest.shoppingmalltest.product.dao.CourseCollectDao;
import com.shoppingmalltest.shoppingmalltest.product.entity.CourseCollectEntity;
import com.shoppingmalltest.shoppingmalltest.product.service.CourseCollectService;


@Service("courseCollectService")
public class CourseCollectServiceImpl extends ServiceImpl<CourseCollectDao, CourseCollectEntity> implements CourseCollectService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CourseCollectEntity> page = this.page(
                new Query<CourseCollectEntity>().getPage(params),
                new QueryWrapper<CourseCollectEntity>()
        );

        return new PageUtils(page);
    }

}